# 打开网易注册页中的普通注册
# 定位邮箱地址并输入，定位密码框输入密码，定位手机号码输入手机号码
# 点击同意复选框
# 最后点击注册按钮
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Firefox()
driver.implicitly_wait(20)
url = 'https://mail.163.com/register/index.htm?from=163navi&regPage=163#/normal'
driver.get(url)

# sleep(3)

# 定位邮箱地址并输入
driver.find_element(By.CSS_SELECTOR, '#username').send_keys('zhangsan745')
# 密码密码输入值
driver.find_element(By.CSS_SELECTOR, '#password').send_keys('123456')
# 定位手机号码输入手机号码
driver.find_element(By.CSS_SELECTOR, '#phone').send_keys('19988891234')
# 定位复选框点击
# sleep(3)
# driver.find_element(By.CSS_SELECTOR, '.service>span').click()

sleep(3)
driver.quit()